# -*- coding: utf-8 -*-
# @Author	: brotherbaby
# @Date		: 2023/10/25 10:11
# @Last Modified by:   brotherbaby
# @Last Modified time: 2023/10/25 10:11
# Thanks for your comments!

from sqlalchemy import Column, Integer, VARCHAR

from src.consts import ModelName
from src.db_proxy.models.modelbase import ModelBase, ModifyingBehevior


class User(ModelBase, ModifyingBehevior):
    __tablename__ = ModelName.User.value

    id = Column('id', Integer, primary_key=True, autoincrement=True)
    openid = Column('openid', VARCHAR(64), index=True)
    username = Column('username', VARCHAR(64), index=True)
    password = Column('password', VARCHAR(128))
    person_id = Column('person_id', Integer, index=True)
